package a03;

public class Animal {
    int age;
    String collor;
    public Animal() {
    }
    public Animal(int age, String collor) {
        this.age = age;
        this.collor = collor;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getCollor() {
        return collor;
    }

    public void setCollor(String collor) {
        this.collor = collor;
    }
    public void eat(String something){
        System.out.println("吃东西");
    }
}
